package com.heny.demo.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.heny.demo.entity.TurnPoint;
import com.heny.demo.mapper.TurnPointMapper;
import com.heny.demo.service.ITurnPointService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TurnPointServiceImpl extends ServiceImpl<TurnPointMapper, TurnPoint> implements ITurnPointService {
    @Override
    public boolean saveBatch(List<TurnPoint> turnPoints) {
        // 使用 MyBatis-Plus 的批量插入方法
        return this.saveBatch(turnPoints, 100); // 分批插入，每批 100 条
    }
}